const debounce = (fun,time) =>{
  let timer
  return function(){
    clearTimeout(timer)
    timer=setTimeout(()=>{
      fun()
    },time)
  }
}

export {
	debounce
}